package rad.framework.mda.generator.template.main.webapp.webinf;

public class WebComponents
{
  protected static String nl;
  public static synchronized WebComponents create(String lineSeparator)
  {
    nl = lineSeparator;
    WebComponents result = new WebComponents();
    nl = null;
    return result;
  }

  public final String NL = nl == null ? (System.getProperties().getProperty("line.separator")) : nl;
  protected final String TEXT_1 = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>" + NL + "<components xmlns=\"http://jboss.com/products/seam/components\"" + NL + "\txmlns:core=\"http://jboss.com/products/seam/core\"" + NL + "\txmlns:theme=\"http://jboss.com/products/seam/theme\"" + NL + "\txmlns:menu=\"http://framework.rad/portal/menu\"" + NL + "\txmlns:dash=\"http://framework.rad/portal/dashboard\"" + NL + "\txmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"" + NL + "\txsi:schemaLocation=\"http://jboss.com/products/seam/core http://jboss.com/products/seam/core-2.0.xsd" + NL + "\t\t\t\thttp://jboss.com/products/seam/theme http://jboss.com/products/seam/theme-2.0.xsd" + NL + "\t\t\t\thttp://jboss.com/products/seam/components http://jboss.com/products/seam/components-2.0.xsd\">" + NL + "\t\t\t\t" + NL + "\t<!-- Use this file to configure themes, menus, tabs and panels. -->" + NL + "\t" + NL + "\t<theme:theme-selector cookie-enabled=\"true\">" + NL + "\t    <theme:available-themes>" + NL + "\t        <value>default</value>" + NL + "\t        <value>tabbed</value>" + NL + "\t        <value>tree</value>" + NL + "\t    </theme:available-themes>" + NL + "\t</theme:theme-selector>" + NL + "" + NL + "\t<!-- " + NL + "\t======================================================= " + NL + "\tMenus " + NL + "\t======================================================= " + NL + "\t-->" + NL + "\t" + NL + "\t<menu:menu-init name=\"AHomeMenu\"" + NL + "\t\tlabel=\"#{messages['Home_Menu']}\"" + NL + "\t\tsortOrder=\"0\"" + NL + "\t\trendered=\"#{s:hasRole('User')}\"" + NL + "\t/>" + NL + "\t" + NL + "\t<menu:menu-init name=\"AdminMenu\"" + NL + "\t\tlabel=\"#{messages['Admin_Menu']}\"" + NL + "\t\tsortOrder=\"99\"" + NL + "\t\trendered=\"#{s:hasRole('Admin')}\"" + NL + "\t/>" + NL + "\t\t\t" + NL + "\t<menu:menu-init name=\"DashboardMenu\" " + NL + "\t\tsortOrder=\"10\"" + NL + "\t\tlabel=\"#{messages['Dashboard_Menu']}\"" + NL + "\t\trendered=\"#{s:hasRole('User')}\"" + NL + "\t\tdisabled=\"\"" + NL + "\t\tviewId=\"/dashboard.xhtml\"" + NL + "\t\tparent=\"AHomeMenu\" " + NL + "\t/>" + NL + "" + NL + "\t<menu:menu-init name=\"MyWorkMenu\" " + NL + "\t\tsortOrder=\"20\"" + NL + "\t\tlabel=\"#{messages['MyWork_Menu']}\"" + NL + "\t\trendered=\"#{s:hasRole('User')}\"" + NL + "\t\tdisabled=\"\"" + NL + "\t\tviewId=\"/jsf/bpm/TaskSearch.xhtml\"" + NL + "\t\tparent=\"AHomeMenu\" " + NL + "\t/>" + NL + "" + NL + "\t<menu:menu-init name=\"UserMenu\" " + NL + "\t\tsortOrder=\"10\"" + NL + "\t\tlabel=\"#{messages['User_Menu']}\"" + NL + "\t\trendered=\"#{s:hasRole('Admin')}\"" + NL + "\t\tdisabled=\"\"" + NL + "\t\tviewId=\"/jsf/User/Search.xhtml\"" + NL + "\t\tparent=\"AdminMenu\" " + NL + "\t/>" + NL + "" + NL + "\t<menu:menu-init name=\"GroupMenu\" " + NL + "\t\tsortOrder=\"11\"" + NL + "\t\tlabel=\"#{messages['Group_Menu']}\"" + NL + "\t\trendered=\"#{s:hasRole('Admin')}\"" + NL + "\t\tdisabled=\"\"" + NL + "\t\tviewId=\"/jsf/Group/Search.xhtml\"" + NL + "\t\tparent=\"AdminMenu\" " + NL + "\t/>" + NL + "" + NL + "\t<menu:menu-init name=\"EventMenu\" " + NL + "\t\tsortOrder=\"20\"" + NL + "\t\tlabel=\"#{messages['Event_Menu']}\"" + NL + "\t\trendered=\"#{s:hasRole('Admin')}\"" + NL + "\t\tdisabled=\"\"" + NL + "\t\tviewId=\"/jsf/bpm/Event/Search.xhtml\"" + NL + "\t\tparent=\"AdminMenu\" " + NL + "\t/>" + NL + "" + NL + "\t<menu:menu-init name=\"TaskMenu\" " + NL + "\t\tsortOrder=\"21\"" + NL + "\t\tlabel=\"#{messages['Task_Menu']}\"" + NL + "\t\trendered=\"#{s:hasRole('Admin')}\"" + NL + "\t\tdisabled=\"\"" + NL + "\t\tviewId=\"/jsf/bpm/Task/Search.xhtml\"" + NL + "\t\tparent=\"AdminMenu\" " + NL + "\t/>" + NL + "\t\t" + NL + "\t<menu:menu-init name=\"AuditEntryMenu\" " + NL + "\t\tsortOrder=\"30\"" + NL + "\t\tlabel=\"#{messages['AuditEntry_Menu']}\"" + NL + "\t\trendered=\"#{s:hasRole('Admin')}\"" + NL + "\t\tdisabled=\"\"" + NL + "\t\tviewId=\"/jsf/AuditEntry/Search.xhtml\"" + NL + "\t\tparent=\"AdminMenu\" " + NL + "\t/>" + NL + "\t\t\t" + NL + "\t<menu:menu-init name=\"MenuMenu\" " + NL + "\t\tsortOrder=\"40\"" + NL + "\t\tlabel=\"#{messages['Menu_Menu']}\"" + NL + "\t\trendered=\"#{s:hasRole('Admin')}\"" + NL + "\t\tdisabled=\"\"" + NL + "\t\tviewId=\"/jsf/Menu/Search.xhtml\"" + NL + "\t\tparent=\"AdminMenu\" " + NL + "\t/>" + NL + "" + NL + "\t<menu:menu-init name=\"TabMenu\" " + NL + "\t\tsortOrder=\"41\"" + NL + "\t\tlabel=\"#{messages['Tab_Menu']}\"" + NL + "\t\trendered=\"#{s:hasRole('Admin')}\"" + NL + "\t\tdisabled=\"\"" + NL + "\t\tviewId=\"/jsf/Tab/Search.xhtml\"" + NL + "\t\tparent=\"AdminMenu\" " + NL + "\t/>" + NL + "" + NL + "\t<menu:menu-init name=\"SavedFilterMenu\" " + NL + "\t\tsortOrder=\"43\"" + NL + "\t\tlabel=\"#{messages['SavedFilter_Menu']}\"" + NL + "\t\trendered=\"#{s:hasRole('Admin')}\"" + NL + "\t\tdisabled=\"\"" + NL + "\t\tviewId=\"/jsf/SavedFilter/Search.xhtml\"" + NL + "\t\tparent=\"AdminMenu\" " + NL + "\t/>" + NL + "" + NL + "\t<menu:menu-init name=\"XrefMenu\" " + NL + "\t\tsortOrder=\"44\"" + NL + "\t\tlabel=\"#{messages['Xref_Menu']}\"" + NL + "\t\trendered=\"#{s:hasRole('Admin')}\"" + NL + "\t\tdisabled=\"\"" + NL + "\t\tviewId=\"/jsf/Xref/Search.xhtml\"" + NL + "\t\tparent=\"AdminMenu\" " + NL + "\t/>" + NL + "   \t" + NL + "\t<!--" + NL + "\t======================================================= " + NL + "\tDashboard " + NL + "\t======================================================= " + NL + "\t-->" + NL + "\t" + NL + "\t<dash:tab-init name=\"AWelcomeTab\"" + NL + "\t\tlabel=\"Welcome\"" + NL + "\t\tsortOrder=\"0\"" + NL + "\t\tcolumnCount=\"3\"" + NL + "\t\trendered=\"#{!identity.loggedIn}\"" + NL + "\t\tdisabled=\"\">" + NL + "\t\t<panels>" + NL + "\t\t\t<value>#{WelcomePanel}</value>" + NL + "\t\t</panels>" + NL + "\t</dash:tab-init>" + NL + "              " + NL + "\t" + NL + "\t<dash:panel-init name=\"WelcomePanel\"" + NL + "\t\tlabel=\"Welcome\"" + NL + "\t\tsortOrder=\"0\"" + NL + "\t\trendered=\"\"" + NL + "\t\tdisabled=\"\"" + NL + "\t\tcolspan=\"1\"" + NL + "\t\trowspan=\"1\"" + NL + "\t\twidth=\"25%\"" + NL + "\t\tfacelet=\"/frag1.xhtml\"" + NL + "\t/>" + NL + "\t" + NL + "\t<dash:tab-init name=\"AUserTab\"" + NL + "\t\tlabel=\"Review\"" + NL + "\t\tsortOrder=\"1\"" + NL + "\t\tcolumnCount=\"1\"" + NL + "\t\trendered=\"#{s:hasRole('User')}\"" + NL + "\t\tdisabled=\"\">" + NL + "\t\t<panels>" + NL + "\t\t\t<value>#{AuditPanel}</value>" + NL + "\t\t</panels>" + NL + "\t</dash:tab-init>" + NL + "\t" + NL + "\t" + NL + "\t<dash:panel-init name=\"AuditPanel\"" + NL + "\t\tlabel=\"Recent Changes\"" + NL + "\t\tsortOrder=\"1\"" + NL + "\t\trendered=\"#{s:hasRole('User')}\"" + NL + "\t\tdisabled=\"\"" + NL + "\t\tcolspan=\"1\"" + NL + "\t\trowspan=\"1\"" + NL + "\t\twidth=\"100%\"" + NL + "\t\tfacelet=\"/jsf/RecentChanges.xhtml\"" + NL + "\t/>" + NL + "\t\t\t" + NL + "</components>";
  protected final String TEXT_2 = NL;

  public String generate(Object argument)
  {
    final StringBuffer stringBuffer = new StringBuffer();
    

    org.eclipse.uml2.uml.Model uml2Model = (org.eclipse.uml2.uml.Model) argument;
    stringBuffer.append(TEXT_1);
    stringBuffer.append(TEXT_2);
    return stringBuffer.toString();
  }
}
